import request from '@/utils/request'
// 获取会员信息分页列表
export const findCustomersPages = (data) => request.post('/back/customers/findCustomersPages', data)

// 获取单位角色
export const getCompanyRole = (data) => request.post('/back/customers/getCompanyRole', data)

// 添加客户
export const addCustomers = (data) => request.post('/back/customers/addCustomers', data)

// 获取文件类型
export const getFileType = (data) => request.post('/common/getFileType', data)

// 获取会员列表下拉框
export const findComboCusList = (data) => request.post('/back/customers/findComboCusList', data)



// 修改客户
export const modifyCustomers = (data) => request.post('/back/customers/modifyCustomers', data)

// 删除客户
export const delCustomers = (data) => request.post('/back/customers/delCustomers', data)

// 设置为推广员
export const setServiceMan = (data) => request.post('/back/customers/setServiceMan', data)

// 获取价格模板名称下拉框
export const findPriceTemplatesNameCombo = (data) => request.post('/back/templatesInfo/findTemplatesInfoNameCombo', data)

// 客户账单,还款,催收日设置（/back/customers/setBillRepaymentHurryDay）
export const setBillRepaymentHurryDay = (data) => request.post('/back/customers/setBillRepaymentHurryDay', data)

// 价格模板设置
export const setPriceTemplate = (data) => request.post('/back/customers/setPriceTemplate', data)

// 导出客户信息前获取查询数据
export const expCutomers = (data) => request.post('/back/customers/expCutomers', data)

// 获取用户钱包分页列表
export const findCusWalletPages = (data) => request.post('/back/wallet/findCusWalletPages', data)

// 导出钱包数据前获取查询数据
export const expCusWallet = (data) => request.post('/back/wallet/expCusWallet', data)

// 充值用户余额
export const userRecharge = (data) => request.post('/back/wallet/userRecharge', data)

// 设置用户信用额度
export const backSetCreditBalance = (data) => request.post('/back/wallet/backSetCreditBalance', data)


//#region 客户列表-交易记录列表
// 获取交易记录分页数据（/back/trade/getWalletListForBack）
export const getWalletListForBack = (data) => request.post('/back/trade/getWalletListForBack', data)

// 获取交易记录类型
export const getTradeTypes = (data) => request.post('/back/trade/getTradeTypes', data)

// 导出前获取查询数据
export const expWalletList = (data) => request.post('/back/trade/expWalletList', data)

//#endregion


//#region  基础设置


// 添加/修改区域设置（/back/areaSet/adupAreaSet）
export const adupAreaSet = (data) => request.post('/back/areaSet/adupAreaSet', data)

// 删除区域设置
export const delAreaSet = (data) => request.post('/back/areaSet/delAreaSet', data)

// 获取设置数据分页数据（/back/dataset/getDataSetList）
export const getDataSetList = (data) => request.post('/back/dataset/getDataSetList', data)

// 获取设置类型（/back/dataset/getDataSetType）
export const getDataSetType = (data) => request.post('/back/dataset/getDataSetType', data)

// [后台]添加/修改数据设置（/back/dataset/adupDataSet） 
export const adupDataSet = (data) => request.post('/back/dataset/adupDataSet', data)

// [后台]删除设置数据（/back/dataset/delDataSet）
export const delDataSet = (data) => request.post('/back/dataset/delDataSet', data)

// 获取节假日设置列表（/back/holidaySet/getHolidaySetList）
export const getHolidaySetList = (data) => request.post('/back/holidaySet/getHolidaySetList', data)

// 添加/修改节假日设置（/back/holidaySet/adupHolidaySet）
export const adupHolidaySet = (data) => request.post('/back/holidaySet/adupHolidaySet', data)

// 删除节假日设置
export const delHolidaySet = (data) => request.post('/back/holidaySet/delHolidaySet', data)

// 获取节假日加价设置列表（/back/priceHoliday/getPriceHolidayList）
export const getPriceHolidayList = (data) => request.post('/back/priceHoliday/getPriceHolidayList', data)

// 添加/修改节假日加价设置（/back/priceHoliday/adupPriceHoliday）
export const adupPriceHoliday = (data) => request.post('/back/priceHoliday/adupPriceHoliday', data)

// 获取区域设置列表（/back/areaSet/getAreaSetList）
export const getAreaSetList = (data) => request.post('/back/areaSet/getAreaSetList', data)

// 获取节假日名称列表下拉框（/back/customers/findHolidayNameCombo）
export const findHolidayNameCombo = (data) => request.post('/back/holidaySet/findHolidayNameCombo', data)

// 删除节假日加价设置（/back/priceHoliday/delPriceHoliday）
export const delPriceHoliday = (data) => request.post('/back/priceHoliday/delPriceHoliday', data)

// 获取模板基础信息设置列表（/back/templatesInfo/getTemplatesInfoPages）
export const getTemplatesInfoPages = (data) => request.post('/back/templatesInfo/getTemplatesInfoPages', data)

// 添加/修改模板基础信息设置（/back/templatesInfo/adupTemplatesInfo）
export const adupTemplatesInfo = (data) => request.post('/back/templatesInfo/adupTemplatesInfo', data)

// 删除模板基础信息设置（/back/templatesInfo/delTemplatesInfo）
export const delTemplatesInfo = (data) => request.post('/back/templatesInfo/delTemplatesInfo', data)

// 获取价格模板设置列表（/back/priceTemplates/getPriceTemplatesList）
export const getPriceTemplatesList = (data) => request.post('/back/priceTemplates/getPriceTemplatesList', data)

// 添加/修改价格模板设置（/back/priceTemplates/adupPriceTemplates）
export const adupPriceTemplates = (data) => request.post('/back/priceTemplates/adupPriceTemplates', data)

// 获取价格模板名称下拉框（/back/templatesInfo/findTemplatesInfoNameCombo）
export const findTemplatesInfoNameCombo = (data) => request.post('/back/templatesInfo/findTemplatesInfoNameCombo', data)

// 删除价格模板设置（/back/priceTemplates/delPriceTemplates）
export const delPriceTemplates = (data) => request.post('/back/priceTemplates/delPriceTemplates', data)



// 添加/修改顺风车价格模板设置（/back/sfcPriceTemplates/adupSfcPriceTemplates）
export const adupSfcPriceTemplates = (data) => request.post('/back/sfcPriceTemplates/adupSfcPriceTemplates', data)

// 删除顺风车价格模板设置（基础模板的设置不能删除）（/back/sfcPriceTemplates/delSfcPriceTemplates）
export const delSfcPriceTemplates = (data) => request.post('/back/sfcPriceTemplates/delSfcPriceTemplates', data)

// 获取车辆配置（/back/sfcPriceTemplates/getCarConfigurationType）
export const getCarConfigurationType = (data) => request.post('/common/getCarConfigurationType', data)

// 获取顺风车价格模板设置列表（/back/sfcPriceTemplates/getSfcPriceTemplatesPages）
export const getSfcPriceTemplatesPages = (data) => request.post('/back/sfcPriceTemplates/getSfcPriceTemplatesPages', data)



// 获取设置类型（/back/stationList/getStationType）
export const getStationType = (data) => request.post('/back/stationList/getStationType', data)

// 获取系统地点分页列表（/back/stationList/getStationListPages）
export const getStationListPages = (data) => request.post('/back/stationList/getStationListPages', data)

// 添加/修改系统地点（/back/stationList/adupStationList）
export const adupStationList = (data) => request.post('/back/stationList/adupStationList', data)

// 删除系统地点（/back/stationList/delStationList）
export const delStationList = (data) => request.post('/back/stationList/delStationList', data)

// 添加班次信息（/back/flightTrainInfo/addFlightTrainInfo）
export const addFlightTrainInfo = (data) => request.post('/back/flightTrainInfo/addFlightTrainInfo', data)

// 删除班次信息（/back/flightTrainInfo/delFlightTrainInfo）
export const delFlightTrainInfo = (data) => request.post('/back/flightTrainInfo/delFlightTrainInfo', data)

// 获取班次信息分页列表（/back/flightTrainInfo/getFlightTrainInfoPages）
export const getFlightTrainInfoPages = (data) => request.post('/back/flightTrainInfo/getFlightTrainInfoPages', data)

// 修改班次信息（/back/flightTrainInfo/modifyFlightTrainInfo）
export const modifyFlightTrainInfo = (data) => request.post('/back/flightTrainInfo/modifyFlightTrainInfo', data)



// 添加/修改-用户个性设置数据API（post）/back/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/back/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/back/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/back/privateSet/getPrivateSetList', data)


//#endregion


//#region 单位列表
// 获取单位分页列表（/back/company/findCompanyPages）
export const findCompanyPages = (data) => request.post('/back/company/findCompanyPages', data)

// 删除单位信息（/back/company/delCompany）content-type:application/x-www-form-urlencoded
export const delCompany = (data) => request.post('/back/company/delCompany', data)




//#endregion

//#region 异常报备
// 获取-异常报备设置列表-分页（/back/dataset/findAccidentNoticeSetPageList）
export const findAccidentNoticeSetPageList = (data) => request.post('/back/dataset/findAccidentNoticeSetPageList', data)

// 添加异常报备设置（/back/dataset/addAccidentNoticeSet）
export const addAccidentNoticeSet = (data) => request.post('/back/dataset/addAccidentNoticeSet', data)

// 修改异常报备设置（/back/dataset/modifyAccidentNoticeSet）
export const modifyAccidentNoticeSet = (data) => request.post('/back/dataset/modifyAccidentNoticeSet', data)

//删除异常报备设置（/back/dataset/delAccidentNoticeSet）
export const delAccidentNoticeSet = (data) => request.post('/back/dataset/delAccidentNoticeSet', data)

//获取系统站点下拉框（/common/findStationCombo）
export const findStationCombo = (data) => request.post('/common/findStationCombo', data)

// 车队一级提成设置（/back/customers/setHandTeamReward）
export const setHandTeamReward = (data) => request.post('/back/customers/setHandTeamReward', data)

// 旅行社一级提成设置（/back/customers/setHandTravelReward）
export const setHandTravelReward = (data) => request.post('/back/customers/setHandTravelReward', data)





//#endregion

//抢单功能设置（/back/company/setIsGrab）
export const setIsGrab = (data) => request.post('/back/company/setIsGrab', data)


//获取旅游包车咨询回访记录分页数据（/back/travelAdviceFollow/findTravelAdviceFollowList）
export const findTravelAdviceFollowList = (data) => request.post('/back/travelAdviceFollow/findTravelAdviceFollowList', data)




//回访旅游包车咨询记录（/back/travelAdviceFollow/followUpTravelAdviceByBack）
export const followUpTravelAdviceByBack = (data) => request.post('/back/travelAdviceFollow/followUpTravelAdviceByBack', data)

//获取-下拉框（/back/company/getCompanyCombo）
export const getCompanyCombo = (data) => request.post('/back/company/getCompanyCombo', data)


//添加/修改班次信息（/back/flightTrainInfo/adUpFlightTrainInfo）
export const adUpFlightTrainInfo = (data) => request.post('/back/flightTrainInfo/adUpFlightTrainInfo', data)

//获取包车价格模板设置列表（/back/bcPriceTemplates/getBcPriceTemplatesPages）
export const getBcPriceTemplatesPages = (data) => request.post('/back/bcPriceTemplates/getBcPriceTemplatesPages', data)


//添加/修改包车价格模板设置（/back/bcPriceTemplates/adupBcPriceTemplates）
export const adupBcPriceTemplates = (data) => request.post('/back/bcPriceTemplates/adupBcPriceTemplates', data)

//删除包车价格模板设置（基础模板的设置不能删除）（/back/bcPriceTemplates/delBcPriceTemplates）
export const delBcPriceTemplates = (data) => request.post('/back/bcPriceTemplates/delBcPriceTemplates', data)

//获取包车利润设置列表（/back/bcPriceTemplates/getBcProfitSetPages）
export const getBcProfitSetPages = (data) => request.post('/back/bcPriceTemplates/getBcProfitSetPages', data)

//获取包车利润设置列表（/back/bcPriceTemplates/adupBcProfitSet）
export const adupBcProfitSet = (data) => request.post('/back/bcPriceTemplates/adupBcProfitSet', data)

//删除包车利润设置（/back/bcPriceTemplates/delBcProfitSet）
export const delBcProfitSet = (data) => request.post('/back/bcPriceTemplates/delBcProfitSet', data)
